<%@ page import="user.Student" %>
<%@ page import="institutional.Major" %>

			<div class="control-group fieldcontain ${hasErrors(bean: studentInstance, field: 'firstName', 'error')} required">
				<label for="firstName" class="control-label"><g:message code="student.firstName.label" default="First Name" /><span class="required-indicator">*</span></label>
				<div class="controls">
					<g:textField name="firstName" required="" value="${studentInstance?.firstName}"/>
					<span class="help-inline">${hasErrors(bean: studentInstance, field: 'firstName', 'error')}</span>
				</div>
			</div>

			<div class="control-group fieldcontain ${hasErrors(bean: studentInstance, field: 'lastName', 'error')} required">
				<label for="lastName" class="control-label"><g:message code="student.lastName.label" default="Last Name" /><span class="required-indicator">*</span></label>
				<div class="controls">
					<g:textField name="lastName" required="" value="${studentInstance?.lastName}"/>
					<span class="help-inline">${hasErrors(bean: studentInstance, field: 'lastName', 'error')}</span>
				</div>
			</div>

			<div class="control-group fieldcontain ${hasErrors(bean: studentInstance, field: 'documentId', 'error')} required">
				<label for="documentId" class="control-label"><g:message code="student.documentId.label" default="Document Id" /><span class="required-indicator">*</span></label>
				<div class="controls">
					<g:field type="number" name="documentId" required="" value="${studentInstance?.documentId}"/>
					<span class="help-inline">${hasErrors(bean: studentInstance, field: 'documentId', 'error')}</span>
				</div>
			</div>
			
			<div class="control-group fieldcontain ${hasErrors(bean: studentInstance, field: 'email', 'error')} required">
				<label for="email" class="control-label"><g:message code="student.email.label" default="Email" /><span class="required-indicator">*</span></label>
				<div class="controls">
					<g:field type="email" name="email" required="" value="${studentInstance?.email}"/>
					<span class="help-inline">${hasErrors(bean: studentInstance, field: 'email', 'error')}</span>
				</div>
			</div>

			<div class="control-group fieldcontain ${hasErrors(bean: studentInstance, field: 'birthDate', 'error')} required">
				<label for="birthDate" class="control-label"><g:message code="student.birthDate.label" default="Birth Date" /><span class="required-indicator">*</span></label>
				<div class="controls">
					<bs:datePicker name="birthDate" precision="day"  value="${studentInstance?.birthDate}"  />
					<span class="help-inline">${hasErrors(bean: studentInstance, field: 'birthDate', 'error')}</span>
				</div>
			</div>


			<div class="control-group fieldcontain ${hasErrors(bean: studentInstance, field: 'studentId', 'error')} required">
				<label for="studentId" class="control-label"><g:message code="student.studentId.label" default="Student Id" /><span class="required-indicator">*</span></label>
				<div class="controls">
					<g:field type="number" name="studentId" required="" value="${studentInstance?.studentId}"/>
					<span class="help-inline">${hasErrors(bean: studentInstance, field: 'studentId', 'error')}</span>
				</div>
			</div>

			<div class="control-group fieldcontain ${hasErrors(bean: studentInstance, field: 'majors', 'error')} ">
				<label for="majors" class="control-label"><g:message code="student.majors.label" default="Majors" /></label>
				<div class="controls">
					<g:select name="majors" from="${institutional.Major.list()}" multiple="multiple" optionKey="id" size="5" 
						value="${studentInstance?.majors}" class="many-to-many"/>
					<span class="help-inline">${hasErrors(bean: studentInstance, field: 'majors', 'error')}</span>
				</div>
			</div>
